<template>
<span class="vp-tag">2.4.4</span>
<p>使用 <code>active-action</code> 和 <code>inactive-action</code> 属性来添加图标。</p>
  <el-switch v-model="value1">
    <template #active-action>
      <span class="custom-active-action">T</span>
    </template>
    <template #inactive-action>
      <span class="custom-inactive-action">F</span>
    </template>
  </el-switch>
</template>
<script setup lang="ts">
import { ref } from 'vue'

const value1 = ref(true)
</script>

<style scoped>
@import '../../assets/elementPlusDemo.css'
</style>